package org.lewis.common.exception;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tocersoft.framework.core.annotations.Component;
import com.tocersoft.framework.web.ExceptionHandler;

/**
 * 异常处理器
 * @author taiqichao
 *
 */
@Component
public class AppExceptionHandler implements ExceptionHandler {

	public void handle(HttpServletRequest request,
			HttpServletResponse response, Exception e) throws Exception {
		request.getRequestDispatcher("/error").forward(request, response);
	}

}
